package com.llynosy.interview.controller.pagecontroller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/problem")
public class ProblemController {

    @RequestMapping("/tag/{tagid}")
    public String showProblemByTag(@PathVariable("tagid")Long id){
        return "/page/tag-problem";
    }

    @RequestMapping("/{id}")
    public String  showProblemById(@PathVariable("id")Long id){

        return "/page/single";
    }
}
